home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / SETUP / US / CBUILDER / DATA.Z / WINRESRC.H < prev    next >
C/C++ Source or Header  |  1997-02-13  |  54KB  |  1,600 lines

  1. /*++ BUILD Version: 0001     Increment this if a change has global effects
  2.  
  3. Copyright (c) 1990-1996  Microsoft Corporation
  4.  
  5. Module Name:
  6.  
  7.     winresrc.h
  8.  
  9. Abstract:
  10.  
  11.     This module defines the 32-Bit Windows resource codes.
  12.  
  13. Revision History:
  14.  
  15. --*/
  16.  
  17. #ifndef _WINRESRC_
  18. #define _WINRESRC_
  19. #pragma option -b
  20.  
  21.  
  22.  
  23. /*
  24.  * ShowWindow() Commands
  25.  */
  26. #define SW_HIDE             0
  27. #define SW_SHOWNORMAL       1
  28. #define SW_NORMAL           1
  29. #define SW_SHOWMINIMIZED    2
  30. #define SW_SHOWMAXIMIZED    3
  31. #define SW_MAXIMIZE         3
  32. #define SW_SHOWNOACTIVATE   4
  33. #define SW_SHOW             5
  34. #define SW_MINIMIZE         6
  35. #define SW_SHOWMINNOACTIVE  7
  36. #define SW_SHOWNA           8
  37. #define SW_RESTORE          9
  38. #define SW_SHOWDEFAULT      10
  39. #define SW_MAX              10
  40.  
  41. /*
  42.  * Old ShowWindow() Commands
  43.  */
  44. #define HIDE_WINDOW         0
  45. #define SHOW_OPENWINDOW     1
  46. #define SHOW_ICONWINDOW     2
  47. #define SHOW_FULLSCREEN     3
  48. #define SHOW_OPENNOACTIVATE 4
  49.  
  50. /*
  51.  * Identifiers for the WM_SHOWWINDOW message
  52.  */
  53. #define SW_PARENTCLOSING    1
  54. #define SW_OTHERZOOM        2
  55. #define SW_PARENTOPENING    3
  56. #define SW_OTHERUNZOOM      4
  57.  
  58.  
  59. /*
  60.  * Virtual Keys, Standard Set
  61.  */
  62. #define VK_LBUTTON        0x01
  63. #define VK_RBUTTON        0x02
  64. #define VK_CANCEL         0x03
  65. #define VK_MBUTTON        0x04    /* NOT contiguous with L & RBUTTON */
  66.  
  67. #define VK_BACK           0x08
  68. #define VK_TAB            0x09
  69.  
  70. #define VK_CLEAR          0x0C
  71. #define VK_RETURN         0x0D
  72.  
  73. #define VK_SHIFT          0x10
  74. #define VK_CONTROL        0x11
  75. #define VK_MENU           0x12
  76. #define VK_PAUSE          0x13
  77. #define VK_CAPITAL        0x14
  78.  
  79.  
  80. #define VK_ESCAPE         0x1B
  81.  
  82. #define VK_SPACE          0x20
  83. #define VK_PRIOR          0x21
  84. #define VK_NEXT           0x22
  85. #define VK_END            0x23
  86. #define VK_HOME           0x24
  87. #define VK_LEFT           0x25
  88. #define VK_UP             0x26
  89. #define VK_RIGHT          0x27
  90. #define VK_DOWN           0x28
  91. #define VK_SELECT         0x29
  92. #define VK_PRINT          0x2A
  93. #define VK_EXECUTE        0x2B
  94. #define VK_SNAPSHOT       0x2C
  95. #define VK_INSERT         0x2D
  96. #define VK_DELETE         0x2E
  97. #define VK_HELP           0x2F
  98.  
  99. /* VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39) */
  100. /* VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A) */
  101.  
  102. #define VK_LWIN           0x5B
  103. #define VK_RWIN           0x5C
  104. #define VK_APPS           0x5D
  105.  
  106. #define VK_NUMPAD0        0x60
  107. #define VK_NUMPAD1        0x61
  108. #define VK_NUMPAD2        0x62
  109. #define VK_NUMPAD3        0x63
  110. #define VK_NUMPAD4        0x64
  111. #define VK_NUMPAD5        0x65
  112. #define VK_NUMPAD6        0x66
  113. #define VK_NUMPAD7        0x67
  114. #define VK_NUMPAD8        0x68
  115. #define VK_NUMPAD9        0x69
  116. #define VK_MULTIPLY       0x6A
  117. #define VK_ADD            0x6B
  118. #define VK_SEPARATOR      0x6C
  119. #define VK_SUBTRACT       0x6D
  120. #define VK_DECIMAL        0x6E
  121. #define VK_DIVIDE         0x6F
  122. #define VK_F1             0x70
  123. #define VK_F2             0x71
  124. #define VK_F3             0x72
  125. #define VK_F4             0x73
  126. #define VK_F5             0x74
  127. #define VK_F6             0x75
  128. #define VK_F7             0x76
  129. #define VK_F8             0x77
  130. #define VK_F9             0x78
  131. #define VK_F10            0x79
  132. #define VK_F11            0x7A
  133. #define VK_F12            0x7B
  134. #define VK_F13            0x7C
  135. #define VK_F14            0x7D
  136. #define VK_F15            0x7E
  137. #define VK_F16            0x7F
  138. #define VK_F17            0x80
  139. #define VK_F18            0x81
  140. #define VK_F19            0x82
  141. #define VK_F20            0x83
  142. #define VK_F21            0x84
  143. #define VK_F22            0x85
  144. #define VK_F23            0x86
  145. #define VK_F24            0x87
  146.  
  147. #define VK_NUMLOCK        0x90
  148. #define VK_SCROLL         0x91
  149.  
  150. /*
  151.  * VK_L* & VK_R* - left and right Alt, Ctrl and Shift virtual keys.
  152.  * Used only as parameters to GetAsyncKeyState() and GetKeyState().
  153.  * No other API or message will distinguish left and right keys in this way.
  154.  */
  155. #define VK_LSHIFT         0xA0
  156. #define VK_RSHIFT         0xA1
  157. #define VK_LCONTROL       0xA2
  158. #define VK_RCONTROL       0xA3
  159. #define VK_LMENU          0xA4
  160. #define VK_RMENU          0xA5
  161.  
  162. #if(WINVER >= 0x0400)
  163. #define VK_PROCESSKEY     0xE5
  164. #endif /* WINVER >= 0x0400 */
  165.  
  166. #define VK_ATTN           0xF6
  167. #define VK_CRSEL          0xF7
  168. #define VK_EXSEL          0xF8
  169. #define VK_EREOF          0xF9
  170. #define VK_PLAY           0xFA
  171. #define VK_ZOOM           0xFB
  172. #define VK_NONAME         0xFC
  173. #define VK_PA1            0xFD
  174. #define VK_OEM_CLEAR      0xFE
  175.  
  176.  
  177. /*
  178.  * Window Messages
  179.  */
  180.  
  181. #define WM_NULL                         0x0000
  182. #define WM_CREATE                       0x0001
  183. #define WM_DESTROY                      0x0002
  184. #define WM_MOVE                         0x0003
  185. #define WM_SIZE                         0x0005
  186.  
  187. #define WM_ACTIVATE                     0x0006
  188. /*
  189.  * WM_ACTIVATE state values
  190.  */
  191. #define     WA_INACTIVE     0
  192. #define     WA_ACTIVE       1
  193. #define     WA_CLICKACTIVE  2
  194.  
  195. #define WM_SETFOCUS                     0x0007
  196. #define WM_KILLFOCUS                    0x0008
  197. #define WM_ENABLE                       0x000A
  198. #define WM_SETREDRAW                    0x000B
  199. #define WM_SETTEXT                      0x000C
  200. #define WM_GETTEXT                      0x000D
  201. #define WM_GETTEXTLENGTH                0x000E
  202. #define WM_PAINT                        0x000F
  203. #define WM_CLOSE                        0x0010
  204. #define WM_QUERYENDSESSION              0x0011
  205. #define WM_QUIT                         0x0012
  206. #define WM_QUERYOPEN                    0x0013
  207. #define WM_ERASEBKGND                   0x0014
  208. #define WM_SYSCOLORCHANGE               0x0015
  209. #define WM_ENDSESSION                   0x0016
  210. #define WM_SHOWWINDOW                   0x0018
  211. #define WM_WININICHANGE                 0x001A
  212. #if(WINVER >= 0x0400)
  213. #define WM_SETTINGCHANGE                WM_WININICHANGE
  214. #endif /* WINVER >= 0x0400 */
  215.  
  216.  
  217. #define WM_DEVMODECHANGE                0x001B
  218. #define WM_ACTIVATEAPP                  0x001C
  219. #define WM_FONTCHANGE                   0x001D
  220. #define WM_TIMECHANGE                   0x001E
  221. #define WM_CANCELMODE                   0x001F
  222. #define WM_SETCURSOR                    0x0020
  223. #define WM_MOUSEACTIVATE                0x0021
  224. #define WM_CHILDACTIVATE                0x0022
  225. #define WM_QUEUESYNC                    0x0023
  226.  
  227. #define WM_GETMINMAXINFO                0x0024
  228. #define WM_PAINTICON                    0x0026
  229. #define WM_ICONERASEBKGND               0x0027
  230. #define WM_NEXTDLGCTL                   0x0028
  231. #define WM_SPOOLERSTATUS                0x002A
  232. #define WM_DRAWITEM                     0x002B
  233. #define WM_MEASUREITEM                  0x002C
  234. #define WM_DELETEITEM                   0x002D
  235. #define WM_VKEYTOITEM                   0x002E
  236. #define WM_CHARTOITEM                   0x002F
  237. #define WM_SETFONT                      0x0030
  238. #define WM_GETFONT                      0x0031
  239. #define WM_SETHOTKEY                    0x0032
  240. #define WM_GETHOTKEY                    0x0033
  241. #define WM_QUERYDRAGICON                0x0037
  242. #define WM_COMPAREITEM                  0x0039
  243.  
  244. #define WM_COMPACTING                   0x0041
  245. #define WM_COMMNOTIFY                   0x0044  /* no longer suported */
  246. #define WM_WINDOWPOSCHANGING            0x0046
  247. #define WM_WINDOWPOSCHANGED             0x0047
  248.  
  249. #define WM_POWER                        0x0048
  250. /*
  251.  * wParam for WM_POWER window message and DRV_POWER driver notification
  252.  */
  253. #define PWR_OK              1
  254. #define PWR_FAIL            (-1)
  255. #define PWR_SUSPENDREQUEST  1
  256. #define PWR_SUSPENDRESUME   2
  257. #define PWR_CRITICALRESUME  3
  258.  
  259. #define WM_COPYDATA                     0x004A
  260. #define WM_CANCELJOURNAL                0x004B
  261.  
  262.  
  263. #if(WINVER >= 0x0400)
  264. #define WM_NOTIFY                       0x004E
  265. #define WM_INPUTLANGCHANGEREQUEST       0x0050
  266. #define WM_INPUTLANGCHANGE              0x0051
  267. #define WM_TCARD                        0x0052
  268. #define WM_HELP                         0x0053
  269. #define WM_USERCHANGED                  0x0054
  270. #define WM_NOTIFYFORMAT                 0x0055
  271.  
  272. #defi